
		<div id="main-content"> <!-- Main Content Section with everything -->			
			<!-- Page Head -->						
			<div class="clear"></div> <!-- End .clear -->
			
			<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3><?php echo $query?'修改':'新建'?>绘本</h3>					
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
					<div >
					
						<form action="<?php echo base_url()?>editor_books/modify_book" method="post">
								<input type='hidden' name='id' value='<?php echo $query?$query['id']:''?>'>						
								<p>
									<label>绘本名称:</label>
										<input class="text-input small-input" type="text" id="small-input" name="title" value='<?php echo $query?$query['row']['title']:''?>' /> 
										<!--<span class="input-notification success png_bg">Successful message</span> <!-- Classes for input-notification: success, error, information, attention -->
								</p>
								<p>
									<label>绘本来源:</label>
									<select name="source" class='source' >
										<option value="" <?php echo $query?'':'selected';?>>--绘本来源--</option>
										<option value="实体书" <?php echo ($query&&$query['source']=='实体书')?'selected':'';?>>实体书</option>
										<option value="源文件" <?php echo ($query&&$query['source']=='源文件')?'selected':'';?>>源文件</option>
										<option value="实体书+源文件" <?php echo ($query&&$query['source']=='实体书+源文件')?'selected':'';?>>实体书+源文件</option>
										<option value="备注" <?php echo ($query&&$query['source']=='备注')?'selected':'';?>>备注</option>
									</select>
								</p>
								<p id="source" style="display:none">
									<label>绘本来源备注：</label>
									<textarea class="text-input" wrap='virtual' name="note1" cols="20" rows="15"><?php echo $query?$query['row']['source']:''?></textarea>
								</p>
								<p>
									<label>制作形式:</label>
									<select name="destination" class="destination" >
										<option value="" <?php echo $query?'':'selected';?>>--制作形式--</option>
										<option value="简单动画" <?php echo ($query&&$query['destination']=='简单动画')?'selected':'';?>>简单动画</option>
										<option value="精致动画" <?php echo ($query&&$query['destination']=='精致动画')?'selected':'';?>>精致动画</option>
										<option value="电子杂志" <?php echo ($query&&$query['destination']=='电子杂志')?'selected':'';?>>电子杂志</option>
										<option value="儿歌（手机版/线上版）" <?php echo ($query&&$query['destination']=='儿歌（手机版/线上版）')?'selected':'';?>>儿歌（手机版/线上版）</option>
										<option value="动画MTV书" <?php echo ($query&&$query['destination']=='动画MTV书')?'selected':'';?>>动画MTV书</option>
										<option value="备注" <?php echo ($query&&$query['destination']=='备注')?'selected':'';?>>备注</option>
									</select> 
								</p>
								<p id="destination" style="display:none">
									<label>制作形式备注：</label>
									<textarea class="text-input" wrap='virtual' name="note2" cols="20" rows="15"><?php echo $query?$query['row']['destination']:''?></textarea>
								</p>
								<p>
									<label>语言:</label>
									<select name="language" class="language" >
										<option value="" <?php echo $query?'':'selected';?>>--语言--</option>
										<option value="中" <?php echo ($query&&$query['language']=='中')?'selected':'';?>>中</option>
										<option value="英" <?php echo ($query&&$query['language']=='英')?'selected':'';?>>英</option>
										<option value="英|中" <?php echo ($query&&$query['language']=='英|中')?'selected':'';?>>英|中</option>
										<option value="备注" <?php echo ($query&&$query['language']=='备注')?'selected':'';?>>备注</option>
									</select>
								</p>
								<p id="language" style="display:none">
									<label>语言备注：</label>
									<textarea class="text-input" wrap='virtual' name="note3" cols="20" rows="15"><?php echo $query?$query['row']['language']:''?></textarea>
								</p>
								<p>
									<label>状态:</label>
									<select name="description" class="description" >
										<option value="" <?php echo $query?'':'selected';?>>--状态--</option>
										<option value="完成并上线" <?php echo ($query&&$query['description']=='完成并上线')?'selected':'';?>>完成并上线</option>
										<option value="初稿完成" <?php echo ($query&&$query['description']=='初稿完成')?'selected':'';?>>初稿完成</option>
										<option value="版權洽談中" <?php echo ($query&&$query['description']=='版權洽談中')?'selected':'';?>>版權洽談中</option>
										<option value="备注" <?php echo ($query&&$query['description']=='备注')?'selected':'';?>>备注</option>
									</select>
								</p>
								<p id="description" style="display:none">
									<label>状态备注：</label>
									<textarea class="text-input" wrap='virtual' name="note4" cols="20" rows="15"><?php echo $query?$query['row']['description']:''?></textarea>
								</p>
								<p>
									<label>出版社:</label>
										<input class="text-input small-input" type="text" id="publisher" name="publisher" value='<?php echo $query?$query['row']['publishername']:''?>' /> 
										<!--<span class="input-notification error png_bg">Error message</span>-->
								</p>								
								<p>
									<input class="button" type="submit" value="Submit" />
								</p>							
							<div class="clear"></div><!-- End .clear -->
							
						</form>						
					</div>					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
			<div class="clear"></div>			
		</div> <!-- End #main-content -->	
	</div>
</body>
  

<!-- Download From www.exet.tk-->
</html>
<script type='text/javascript'>
$(function(){
	//修改出版社名的验证
	$('#publisher').change(function(){
		$.post('<?php echo base_url()?>editor_books/ajax',{p_name:$('#publisher').val()},function(data){
			if(data=='a'){
			
			}else{
				if(window.confirm(data))
					$.post('<?php echo base_url()?>editor_books/ajax',{p:$('#publisher').val()},function(data){alert(data)})
				else
					$('#publisher').val('<?php echo $query?$query['row']['publishername']:''?>');
					return false;
			}
		})
	});	
})
</script>